Salesforce UX API icon

Salesforce UX API

(0 reviews)

TMF-640 POST Create Account (Akamai)

Create Account in Akamai system

URL
https://[localhost]:[port]/sfdc-ux/v1/{businessId}/service
uri Param
nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, etc.) identifying the business unit.Y
nametypedescriptionrequired
client_idstringThe client_id identifying the channel.Y
client_secretstringPassword associated with the client_id.Y
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server. Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction. Note - Mule default behavior creates a sample x-correlation-id field if value is not passed from client, API will use this value in case value is not passed in API requestY
X-Asavie-Tenant-IdstringIdentifies the tenant or organizationY
operationstringoperation to be performedY
cURL request
curl --location 'https://nonprod.esb.cloud.lla.com/dev/sfdc-ux/sfdc-ux/v1/PR/service' \
--header 'X-Correlation-Id: test1234' \
--header 'client_id: abcde' \
--header 'client_secret: 12345' \
--header 'operation: POST_DEVICE_AKAMAI' \
--header 'X-Asavie-Tenant-Id: a005e16a-2fc4-4320-a3fb-545ae52f5958' \
--header 'Content-Type: application/json' \
--data-raw '{
    "serviceType": "AKAMAI_CREATE_ACCOUNT",
    "name": "Test Account123",
    "category": "SDEDG001NW",  //SKU
    "place": [
        {
            "id": "us-1",
            "role": "individual"
        }
    ],
    "serviceCharacteristics": [
        {
            "name": "id",  //External_Id it will refer as BAN-CAN
            "value": "12345698-789456123"
        },
        {
            "name": "email",
            "value": "test@lla.com"
        },
        {
            "name": "quotaCycle",
            "value": {
                "day": 1,
                "hour": 0,
                "minute": 0
            }
        }
    ]
}'
Definitions

Each of the request parameters is detailed.

nametypedescriptionrequired
serviceTypestringType of the serviceY
namestringTypically account name is referred by the customer’s nameY
categorystringSKUY
place.idstringregion of the customer allowed values are us-1, eu-1 and ap-1Y
place.rolestringroleY
serviceCharacteristicsarrayHolds characteritic informationY
serviceCharacteristics.namestringName of the characteriticY
serviceCharacteristics.valuestringValue of the charcteriticY

charactereristics:

characteristic nametypedescription
idstringBAN-CAN of the customer
emailstringCustomer’s email address
quotaCycleobjectA quota cyle represents the time a policy qutoa will be reset (monthly/daily). For an Account this is default to the Tenant settings. For a network its default to the account settings
quotaCycle.dayintegerday of the month
quotaCycle.hourintegerhour of the day
quotaCycle.hourintegerminute of the hour
Response
{
    "id": "82ebc565-3af5-4cf0-b28a-ae55ab360439",
    "state": "activating",
    "name": "Test Account123",
    "category": "SDEDG003",
    "place": {
        "id": "us-1",
        "role": "Individual"
    },
    "serviceCharacteristics": [
        {
            "email": "test@lla.com",
            "quotaCycle": {
                "day": 1,
                "hour": 0,
                "minute": 0
            }
        }
    ]
}
Definitions

Each of the request parameters is detailed.

nametypedescriptionrequired
idstringCustomer account idY
statestringCustomer account statusY
categorystringSKUY
place.idstringregion of the customer allowed values are us-1, eu-1 and ap-1Y
place.rolestringroleY
serviceCharacteristicsarrayHolds characteritic informationY
serviceCharacteristics.namestringName of the characteriticY
serviceCharacteristics.valuestringValue of the charcteriticY

charactereristics:

characteristic nametypedescription
emailstringCustomer’s email address
quotaCycleobjectA quota cyle represents the time a policy qutoa will be reset (monthly/daily). For an Account this is default to the Tenant settings. For a network its default to the account settings
quotaCycle.dayintegerday of the month
quotaCycle.hourintegerhour of the day
quotaCycle.hourintegerminute of the hour

Possible response error

In this section all the possible data structures received by the client are defined and that must be considered as unsatisfactory when responding to the method.

[ 400 ]

Bad Request - the request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.

{
  "errors" : [{
      "code" : 400,
      "message" : "The request is invalid or not properly formed.",
      "description" : "Malformed request syntax, invalid request message framing, or deceptive request routing."
    }]
}
[ 401 ]

Unauthorized - The request has not been applied because it lacks valid authentication credentials for the target resource.

{
  "errors" : [{
      "code" : 401,
      "message" : "The user could not be authenticated for this request.",
      "description" : "The request has not been applied because it lacks valid authentication credentials for the target resource"
    }]
}
[ 404 ]

Not Found - server has not found a resource with that URI. This may be temporary and permanent condition. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.

{
  "errors" : [{
      "code" : 404,
      "message" : "The request is invalid or not properly formed.",
      "description" : "The requested operation failed because a resource associated with the request could not be found."
    }]
}
[ 405 ]

Method Not Allowed - HTTP method not allowed for this resource. The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.

{
    "errors": [{
            "code": 405,
             "message": "APIKIT:METHOD_NOT_ALLOWED",
             "description": "HTTP Method DELETE not allowed for : /{businessId}/service"
        }]
}
[ 500 ]

Internal Server Error - server encountered an error processing request. This should not happen normally, but it is a generic error message, given when no more specific message is suitable.

{
  "errors" : [{
      "code" : 500,
      "message" : "Internal Server Error",
      "description": "The request failed due to an internal error"
    }]
}
[ 501 ]

Not implemented - indicates that the server does not support the functionality required to fulfill the request. This is the appropriate response when the server does not recognize the request method and is not capable of supporting it for any resource.

{
  "errors" : [{
      "code" : 501,
      "message" : "Not implemented",
      "description" : "Operation PATCH /service for Business Id: xxxx not implemented"
    }]
  }

Reviews